import { InMemoryDbService } from 'angular-in-memory-web-api';

export class InMemoryDataService implements InMemoryDbService {
  createDb() {
    const heroes = [
      {id: 1, name: '齐天大圣'},
      {id: 2, name: '白晶晶'},
      {id: 3, name: '萧峰'},
      {id: 4, name: '牛魔王'},
      {id: 5, name: '铁扇公主'},
      {id: 6, name: '玉面狐狸'},
    ];
    return {heroes};
  }
}
